import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

import routes from "~pages";

// const routes: Array<RouteRecordRaw> = [
//   {
//     path: "/",
//     component: () => import("../pages/index.vue"),
//   }
// ]

const router = createRouter({
  history: createWebHashHistory(), // 路由模式
  routes
})

export default router

